<%--
  Created by IntelliJ IDEA.
  User: chen
  Date: 17-9-14
  Time: 上午11:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <c:set var="basePath" value="${pageContext.request.contextPath}"/>
    <link rel="stylesheet" href="${basePath}/static/css/bootstrap.min.css">
    <link rel="stylesheet" href="${basePath}/static/css/all.css" >
    <script src="${basePath}/static/js/jquery-3.2.1.min.js"></script>
    <script src="${basePath}/static/js/bootstrap.min.js"></script>
</head>
<body>
    <div id="user_div">
        <c:choose>
            <c:when test="${not empty sessionScope.loginUser}">
                <%--href="/library/user/userInfo"--%>
                <a id="a_userInfo" href="${basePath}/user/userInfo?sign=1" >${sessionScope.loginUser.getUsername()}</a>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <a href="${basePath}/user/exit">退出</a>
            </c:when>
            <c:otherwise>
                <a href="${basePath}/user/loginView">请先登录</a>
            </c:otherwise>
        </c:choose>

    </div>
</body>
</html>
